package work02;

import java.util.Scanner;

/**
 * @author ｙｕａｎｂｉｎｂｉｎｇ
 * 比较三个数的最大值
 */
public class hw2_01_02 {
    public static void main(String[] args) {
        System.out.println("请输入三个整数：");
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        if(x>y&x>z){
            System.out.println("max:"+x);
        }else if(y>x&y>z){
            System.out.println("max:"+y);
        }else{
            System.out.println("max:"+z);
        }
    }
}
